<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
	<style>
		.outer {
			width: 1000px;
			height: 100px;
			border: 1px solid black;
        }
        
        @keyframes wangyoudong {
            from {

            }

            to {
                transform: translateX(900px) rotateZ(360deg);
                border-radius: 50%;
                background-color: red;
            }
        }

        @keyframes wangyoudong2 {
            0% {

            }

            20% {
                background-color: blue;
            }

            40% {
                background-color: yellow;
            }

            60% {
                background-color: green;
            }

            100% {
                transform: translateX(900px) rotateZ(360deg);
                border-radius: 50%;
                background-color: red;
            }
        }

		.inner {
			width: 100px;
			height: 100%;
            background-color: skyblue;
            /* 申明动画名称 */
            animation-name: wangyoudong2;
            animation-duration: 3s;
		}
	</style>
</head>
<body>
	<div class="outer">
		<div class="inner"></div>
	</div>
</body>
</html>